/*
 * XML Type:  InterModResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InterModResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InterModResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InterModResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractInterResponseImpl implements net.ofx.types.x2003.x04.InterModResponse
{
    
    public InterModResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SRVRTID$0 = 
        new javax.xml.namespace.QName("", "SRVRTID");
    private static final javax.xml.namespace.QName XFERINFO$2 = 
        new javax.xml.namespace.QName("", "XFERINFO");
    private static final javax.xml.namespace.QName XFERPRCSTS$4 = 
        new javax.xml.namespace.QName("", "XFERPRCSTS");
    
    
    /**
     * Gets the "SRVRTID" element
     */
    public java.lang.String getSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SRVRTID" element
     */
    public void setSRVRTID(java.lang.String srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SRVRTID$0);
            }
            target.setStringValue(srvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "SRVRTID" element
     */
    public void xsetSRVRTID(net.ofx.types.x2003.x04.ServerIdType srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(SRVRTID$0);
            }
            target.set(srvrtid);
        }
    }
    
    /**
     * Gets the "XFERINFO" element
     */
    public net.ofx.types.x2003.x04.TransferInfo getXFERINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferInfo target = null;
            target = (net.ofx.types.x2003.x04.TransferInfo)get_store().find_element_user(XFERINFO$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "XFERINFO" element
     */
    public void setXFERINFO(net.ofx.types.x2003.x04.TransferInfo xferinfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferInfo target = null;
            target = (net.ofx.types.x2003.x04.TransferInfo)get_store().find_element_user(XFERINFO$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TransferInfo)get_store().add_element_user(XFERINFO$2);
            }
            target.set(xferinfo);
        }
    }
    
    /**
     * Appends and returns a new empty "XFERINFO" element
     */
    public net.ofx.types.x2003.x04.TransferInfo addNewXFERINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferInfo target = null;
            target = (net.ofx.types.x2003.x04.TransferInfo)get_store().add_element_user(XFERINFO$2);
            return target;
        }
    }
    
    /**
     * Gets the "XFERPRCSTS" element
     */
    public net.ofx.types.x2003.x04.TransferProcessingStatus getXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().find_element_user(XFERPRCSTS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "XFERPRCSTS" element
     */
    public boolean isSetXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(XFERPRCSTS$4) != 0;
        }
    }
    
    /**
     * Sets the "XFERPRCSTS" element
     */
    public void setXFERPRCSTS(net.ofx.types.x2003.x04.TransferProcessingStatus xferprcsts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().find_element_user(XFERPRCSTS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().add_element_user(XFERPRCSTS$4);
            }
            target.set(xferprcsts);
        }
    }
    
    /**
     * Appends and returns a new empty "XFERPRCSTS" element
     */
    public net.ofx.types.x2003.x04.TransferProcessingStatus addNewXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TransferProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.TransferProcessingStatus)get_store().add_element_user(XFERPRCSTS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "XFERPRCSTS" element
     */
    public void unsetXFERPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(XFERPRCSTS$4, 0);
        }
    }
}
